<!doctype html>



  


<html class="theme-next pisces use-motion" lang="zh-Hans">
<head>
  <meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>



<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />















  
  
  <link href="/lib/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css" />




  
  
  
  

  
    
    
  

  

  

  

  

  
    
    
    <link href="//fonts.googleapis.com/css?family=Lato:300,300italic,400,400italic,700,700italic&subset=latin,latin-ext" rel="stylesheet" type="text/css">
  






<link href="/lib/font-awesome/css/font-awesome.min.css?v=4.6.2" rel="stylesheet" type="text/css" />

<link href="/css/main.css?v=5.1.0" rel="stylesheet" type="text/css" />


  <meta name="keywords" content="Hexo, NexT, Blog, JAVA,Spring,Mysql,Quartz,Python,程序员" />





  <link rel="alternate" href="https://my.oschina.net/giegie/rss" title="Gie的博客" type="application/atom+xml" />




  <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico?v=5.1.0" />






<meta name="description" content="jfinal内置了以个handler  ，其中RoutesHandler ActionHandler 是框架核心依赖的我们不考虑。主要研究下边的5个


UrlSkipHandler排除满足正则的url，跳过的url会被下一个filter处理
12345678910111213141516171819202122232425/** * Skip the excluded url request f">
<meta property="og:type" content="article">
<meta property="og:title" content="jfinal 内置的handler功能">
<meta property="og:url" content="https://jieblog.github.io/2017/02/13/jfinal 内置的handler功能/index.html">
<meta property="og:site_name" content="Gie的博客">
<meta property="og:description" content="jfinal内置了以个handler  ，其中RoutesHandler ActionHandler 是框架核心依赖的我们不考虑。主要研究下边的5个


UrlSkipHandler排除满足正则的url，跳过的url会被下一个filter处理
12345678910111213141516171819202122232425/** * Skip the excluded url request f">
<meta property="og:image" content="http://obq1lvsd9.bkt.clouddn.com/handler.png">
<meta property="og:updated_time" content="2017-02-23T06:11:03.461Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="jfinal 内置的handler功能">
<meta name="twitter:description" content="jfinal内置了以个handler  ，其中RoutesHandler ActionHandler 是框架核心依赖的我们不考虑。主要研究下边的5个


UrlSkipHandler排除满足正则的url，跳过的url会被下一个filter处理
12345678910111213141516171819202122232425/** * Skip the excluded url request f">
<meta name="twitter:image" content="http://obq1lvsd9.bkt.clouddn.com/handler.png">



<script type="text/javascript" id="hexo.configurations">
  var NexT = window.NexT || {};
  var CONFIG = {
    root: '/',
    scheme: 'Pisces',
    sidebar: {"position":"left","display":"post","offset":12,"offset_float":0,"b2t":false,"scrollpercent":false},
    fancybox: true,
    motion: true,
    duoshuo: {
      userId: '0',
      author: 'Author'
    },
    algolia: {
      applicationID: '75HUY04HZY',
      apiKey: 'c215d1b4c97f100bad332f84e968d70a',
      indexName: 'qq154987607',
      hits: {"per_page":10},
      labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
    }
  };
</script>



  <link rel="canonical" href="https://jieblog.github.io/2017/02/13/jfinal 内置的handler功能/"/>





  <meta name="baidu-site-verification" content="cKXv4cbRZc" />
  <meta name="google-site-verification" content="05Vxc1yd7lC2F1bxwmmbQkfP-rZgvPLTqufHSzImPcM" />
  <title> jfinal 内置的handler功能 | Gie的博客 </title>
</head>

<body itemscope itemtype="http://schema.org/WebPage" lang="zh-Hans">

  





  <script type="text/javascript">
    var _hmt = _hmt || [];
    (function() {
      var hm = document.createElement("script");
      hm.src = "https://hm.baidu.com/hm.js?7e8381cb6c39db6048492ff2e52234cb";
      var s = document.getElementsByTagName("script")[0];
      s.parentNode.insertBefore(hm, s);
    })();
  </script>










  
  
    
  

  <div class="container one-collumn sidebar-position-left page-post-detail ">
    <div class="headband"></div>

    <header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-wrapper">
  <div class="site-meta ">
    

    <div class="custom-logo-site-title">
      <a href="/"  class="brand" rel="start">
        <span class="logo-line-before"><i></i></span>
        <span class="site-title">Gie的博客</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>
      
        <h1 class="site-subtitle" itemprop="description">为人瓜而不皮 一身正气</h1>
      
  </div>

  <div class="site-nav-toggle">
    <button>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
    </button>
  </div>
</div>

<nav class="site-nav">
  

  
    <ul id="menu" class="menu">
      
        
        <li class="menu-item menu-item-home">
          <a href="/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-home"></i> <br />
            
            首页
          </a>
        </li>
      
        
        <li class="menu-item menu-item-categories">
          <a href="/categories" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-th"></i> <br />
            
            分类
          </a>
        </li>
      
        
        <li class="menu-item menu-item-archives">
          <a href="/archives" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-archive"></i> <br />
            
            归档
          </a>
        </li>
      

      
        <li class="menu-item menu-item-search">
          
            <a href="javascript:;" class="popup-trigger">
          
            
              <i class="menu-item-icon fa fa-search fa-fw"></i> <br />
            
            搜索
          </a>
        </li>
      
    </ul>
  

  
    <div class="site-search">
      
  
  <div class="algolia-popup popup">
    <div class="algolia-search">
      <div class="algolia-search-input-icon">
        <i class="fa fa-search"></i>
      </div>
      <div class="algolia-search-input" id="algolia-search-input"></div>
    </div>

    <div class="algolia-results">
      <div id="algolia-stats"></div>
      <div id="algolia-hits"></div>
      <div id="algolia-pagination" class="algolia-pagination"></div>
    </div>

    <span class="popup-btn-close">
      <i class="fa fa-times-circle"></i>
    </span>
  </div>




    </div>
  
</nav>



 </div>
    </header>

    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          <div id="content" class="content">
            

  <div id="posts" class="posts-expand">
    

  

  
  
  

  <article class="post post-type-normal " itemscope itemtype="http://schema.org/Article">
  <link itemprop="mainEntityOfPage" href="https://jieblog.github.io/2017/02/13/jfinal 内置的handler功能/">

  <span style="display:none" itemprop="author" itemscope itemtype="http://schema.org/Person">
    <meta itemprop="name" content="Gie">
    <meta itemprop="description" content="">
    <meta itemprop="image" content="/images/logo.png">
  </span>

  <span style="display:none" itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
    <meta itemprop="name" content="Gie的博客">
    <span style="display:none" itemprop="logo" itemscope itemtype="http://schema.org/ImageObject">
      <img style="display:none;" itemprop="url image" alt="Gie的博客" src="">
    </span>
  </span>

    
      <header class="post-header">

        
        
          <h2 class="post-title" itemprop="name headline">
            
            
              
                jfinal 内置的handler功能
              
            
          </h2>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2017-02-13T00:00:00+08:00">
                2017-02-13
              </time>
            

            

            
          </span>

          
            <span class="post-category" >
            
              <span class="post-meta-divider">|</span>
            
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              
                <span class="post-meta-item-text">分类于</span>
              
              
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/categories/JAVAEE/" itemprop="url" rel="index">
                    <span itemprop="name">JAVAEE</span>
                  </a>
                </span>

                
                
              
            </span>
          

          
            
          

          
          

          

          

          

        </div>
      </header>
    


    <div class="post-body" itemprop="articleBody">

      
      

      
        <p>jfinal内置了以个handler  ，其中RoutesHandler ActionHandler 是框架核心依赖的我们不考虑。主要研究下边的5个</p>
<hr>
<p><img src="http://obq1lvsd9.bkt.clouddn.com/handler.png" alt="image"></p>
<h3 id="UrlSkipHandler"><a href="#UrlSkipHandler" class="headerlink" title="UrlSkipHandler"></a>UrlSkipHandler</h3><p>排除满足正则的url，跳过的url会被下一个filter处理</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div><div class="line">13</div><div class="line">14</div><div class="line">15</div><div class="line">16</div><div class="line">17</div><div class="line">18</div><div class="line">19</div><div class="line">20</div><div class="line">21</div><div class="line">22</div><div class="line">23</div><div class="line">24</div><div class="line">25</div></pre></td><td class="code"><pre><div class="line">/**</div><div class="line"> * Skip the excluded url request from browser.</div><div class="line"> * The skiped url will be handled by next Filter after JFinalFilter</div><div class="line"> * &lt;p&gt;</div><div class="line"> * Example: me.add(new UrlSkipHandler(&quot;.+\\.\\w&#123;1,4&#125;&quot;, false));</div><div class="line"> */</div><div class="line">public class UrlSkipHandler extends Handler &#123;</div><div class="line">	</div><div class="line">	private Pattern skipedUrlPattern;</div><div class="line">	</div><div class="line">	public UrlSkipHandler(String skipedUrlRegx, boolean isCaseSensitive) &#123;</div><div class="line">		if (StrKit.isBlank(skipedUrlRegx)) &#123;</div><div class="line">			throw new IllegalArgumentException(&quot;The para excludedUrlRegx can not be blank.&quot;);</div><div class="line">		&#125;</div><div class="line">		skipedUrlPattern = isCaseSensitive ? Pattern.compile(skipedUrlRegx) : Pattern.compile(skipedUrlRegx, Pattern.CASE_INSENSITIVE);</div><div class="line">	&#125;</div><div class="line">	</div><div class="line">	public void handle(String target, HttpServletRequest request, HttpServletResponse response, boolean[] isHandled) &#123;</div><div class="line">		if (skipedUrlPattern.matcher(target).matches()) &#123;</div><div class="line">			return ;</div><div class="line">		&#125; else &#123;</div><div class="line">			next.handle(target, request, response, isHandled);</div><div class="line">		&#125;</div><div class="line">	&#125;</div><div class="line">&#125;</div></pre></td></tr></table></figure>
<h3 id="DruidStatViewHandler"><a href="#DruidStatViewHandler" class="headerlink" title="DruidStatViewHandler"></a>DruidStatViewHandler</h3><p>Druid内置提供了一个StatViewServlet用于展示Druid的统计信息。<br>这个StatViewServlet的用途包括：</p>
<ul>
<li>提供监控信息展示的html页面</li>
<li>提供监控信息的JSON API<br>注意：使用StatViewServlet，建议使用druid 0.2.6以上版本。</li>
</ul>
<ol>
<li>传统配置web.xml</li>
</ol>
<p>StatViewServlet是一个标准的javax.servlet.http.HttpServlet，需要配置在你web应用中的WEB-INF/web.xml中。（密码，白名单等都可以在这里配置）</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div></pre></td><td class="code"><pre><div class="line">&lt;servlet&gt;</div><div class="line">      &lt;servlet-name&gt;DruidStatView&lt;/servlet-name&gt;</div><div class="line">      &lt;servlet-class&gt;com.alibaba.druid.support.http.StatViewServlet&lt;/servlet-class&gt;</div><div class="line">  &lt;/servlet&gt;</div><div class="line">  &lt;servlet-mapping&gt;</div><div class="line">      &lt;servlet-name&gt;DruidStatView&lt;/servlet-name&gt;</div><div class="line">      &lt;url-pattern&gt;/druid/*&lt;/url-pattern&gt;</div><div class="line">  &lt;/servlet-mapping&gt;</div></pre></td></tr></table></figure>
<p>根据配置中的url-pattern来访问内置监控页面，如果是上面的配置，内置监控页面的首页是/druid/index.html</p>
<ol>
<li>jfinal提供优雅的方式</li>
</ol>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div><div class="line">13</div><div class="line">14</div><div class="line">15</div><div class="line">16</div><div class="line">17</div><div class="line">18</div></pre></td><td class="code"><pre><div class="line"> /**</div><div class="line"> * 配置处理器</div><div class="line"> */</div><div class="line">public void configHandler(Handlers me) &#123;</div><div class="line">    me.add(new DruidStatViewHandler(&quot;/druid&quot;,new DruidStatViewAuthImpl()));</div><div class="line">&#125;</div><div class="line">    </div><div class="line">public class DruidStatViewAuthImpl implements IDruidStatViewAuth&#123;</div><div class="line">    /**</div><div class="line">     * 具体的认证逻辑实现</div><div class="line">     * @param request</div><div class="line">     * @return</div><div class="line">     */</div><div class="line">    @Override</div><div class="line">    public boolean isPermitted(HttpServletRequest request) &#123;</div><div class="line">        return false;</div><div class="line">    &#125;</div><div class="line">&#125;</div></pre></td></tr></table></figure>
<h3 id="ContextPathHandler"><a href="#ContextPathHandler" class="headerlink" title="ContextPathHandler"></a>ContextPathHandler</h3><p>提供全局的上下文路径<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div><div class="line">13</div><div class="line">14</div><div class="line">15</div><div class="line">16</div><div class="line">17</div><div class="line">18</div><div class="line">19</div><div class="line">20</div><div class="line">21</div><div class="line">22</div><div class="line">23</div><div class="line">24</div><div class="line">25</div><div class="line">26</div><div class="line">27</div><div class="line">28</div><div class="line">29</div><div class="line">30</div><div class="line">31</div></pre></td><td class="code"><pre><div class="line">/**</div><div class="line"> * 配置处理器</div><div class="line"> */</div><div class="line">public void configHandler(Handlers me) &#123;</div><div class="line">    me.add(new ContextPathHandler(&quot;ctx&quot;));</div><div class="line">&#125;</div><div class="line"></div><div class="line">那么在页面中就可以这么使用了</div><div class="line">&lt;img src=&quot;$&#123;BASE_PATH&#125;/images/logo.png&quot; /&gt;</div><div class="line"></div><div class="line">代码实现很简单</div><div class="line">public class ContextPathHandler extends Handler &#123;</div><div class="line">	</div><div class="line">    private String contextPathName;</div><div class="line">	</div><div class="line">    public ContextPathHandler() &#123;</div><div class="line">	    contextPathName = &quot;CONTEXT_PATH&quot;;</div><div class="line">    &#125;</div><div class="line">	</div><div class="line">    public ContextPathHandler(String contextPathName) &#123;</div><div class="line">    	if (StrKit.isBlank(contextPathName)) &#123;</div><div class="line">    		throw new IllegalArgumentException(&quot;contextPathName can not be blank.&quot;);</div><div class="line">	    &#125;</div><div class="line">	    this.contextPathName = contextPathName;</div><div class="line">    &#125;</div><div class="line">	</div><div class="line">    public void handle(String target, HttpServletRequest request, HttpServletResponse response, boolean[] isHandled) &#123;</div><div class="line">    	request.setAttribute(contextPathName, request.getContextPath());</div><div class="line">    	next.handle(target, request, response, isHandled);</div><div class="line">    &#125;</div><div class="line">&#125;</div></pre></td></tr></table></figure></p>
<h3 id="ServerNameRedirect301Handler"><a href="#ServerNameRedirect301Handler" class="headerlink" title="ServerNameRedirect301Handler"></a>ServerNameRedirect301Handler</h3><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div></pre></td><td class="code"><pre><div class="line">301重定向到新服务器名称</div><div class="line"></div><div class="line">/**</div><div class="line"> * 配置处理器</div><div class="line"> */</div><div class="line">public void configHandler(Handlers me) &#123;</div><div class="line">    me.add(new ServerNameRedirect301Handler(&quot;http://localhost&quot;,&quot;http://127.0.0.1&quot;));</div><div class="line">&#125;</div><div class="line"></div><div class="line">访问：http://localhost/xxx  重定向到http://127.0.0.1/xxx</div></pre></td></tr></table></figure>
<h3 id="FakeStaticHandler"><a href="#FakeStaticHandler" class="headerlink" title="FakeStaticHandler"></a>FakeStaticHandler</h3><p>伪静态化配置</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div></pre></td><td class="code"><pre><div class="line"> /**</div><div class="line"> * 配置处理器</div><div class="line"> */</div><div class="line">public void configHandler(Handlers me) &#123;</div><div class="line">    me.add(new FakeStaticHandler(&quot;.html&quot;));</div><div class="line">&#125;</div><div class="line"></div><div class="line">请求 localhost/xxx.html 实际对应的路由是 xxx</div></pre></td></tr></table></figure>

      
    </div>

    <div>
      
        

      
    </div>

    <div>
      
        

      
    </div>


    <footer class="post-footer">
      

      
        
      

      
        <div class="post-nav">
          <div class="post-nav-next post-nav-item">
            
              <a href="/2017/02/12/MySQL二进制日志/" rel="next" title="MySQL二进制日志">
                <i class="fa fa-chevron-left"></i> MySQL二进制日志
              </a>
            
          </div>

          <span class="post-nav-divider"></span>

          <div class="post-nav-prev post-nav-item">
            
              <a href="/2017/02/15/ArrayList foreach 循环里进行元素的 remove add 操作有什么现象/" rel="prev" title="ArrayList foreach 循环里进行元素的 remove add 操作有什么现象">
                ArrayList foreach 循环里进行元素的 remove add 操作有什么现象 <i class="fa fa-chevron-right"></i>
              </a>
            
          </div>
        </div>
      

      
      
    </footer>
  </article>



    <div class="post-spread">
      
    </div>
  </div>

          
          </div>
          


          
  <div class="comments" id="comments">
    
      <div id="lv-container" data-id="city" data-uid="MTAyMC8yNzgyMS80Mzk3"></div>
    
  </div>


        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    <div class="sidebar-inner">

      

      
        <ul class="sidebar-nav motion-element">
          <li class="sidebar-nav-toc sidebar-nav-active" data-target="post-toc-wrap" >
            文章目录
          </li>
          <li class="sidebar-nav-overview" data-target="site-overview">
            站点概览
          </li>
        </ul>
      

      <section class="site-overview sidebar-panel">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
          <img class="site-author-image" itemprop="image"
               src="/images/logo.png"
               alt="Gie" />
          <p class="site-author-name" itemprop="name">Gie</p>
           
              <p class="site-description motion-element" itemprop="description"></p>
           
        </div>
        <nav class="site-state motion-element">

          
            <div class="site-state-item site-state-posts">
              <a href="/archives">
                <span class="site-state-item-count">94</span>
                <span class="site-state-item-name">日志</span>
              </a>
            </div>
          

          
            <div class="site-state-item site-state-categories">
              <a href="/categories">
                <span class="site-state-item-count">5</span>
                <span class="site-state-item-name">分类</span>
              </a>
            </div>
          

          
        </nav>

        <div class="links-of-author motion-element">
          
            
              <span class="links-of-author-item">
                <a href="https://github.com/jieblog" target="_blank" title="GitHub">
                  
                    <i class="fa fa-fw fa-github"></i>
                  
                  GitHub
                </a>
              </span>
            
              <span class="links-of-author-item">
                <a href="http://git.oschina.net/log4j" target="_blank" title="GitOsc">
                  
                    <i class="fa fa-fw fa-globe"></i>
                  
                  GitOsc
                </a>
              </span>
            
              <span class="links-of-author-item">
                <a href="http://weibo.com/u/3911368554" target="_blank" title="Weibo">
                  
                    <i class="fa fa-fw fa-weibo"></i>
                  
                  Weibo
                </a>
              </span>
            
              <span class="links-of-author-item">
                <a href="wangiegieg@gmail.com" target="_blank" title="Email">
                  
                    <i class="fa fa-fw fa-google"></i>
                  
                  Email
                </a>
              </span>
            
          
        </div>

        
        

        
        

        


      </section>

      
      <!--noindex-->
        <section class="post-toc-wrap motion-element sidebar-panel sidebar-panel-active">
          <div class="post-toc">

            
              
            

            
              <div class="post-toc-content"><ol class="nav"><li class="nav-item nav-level-3"><a class="nav-link" href="#UrlSkipHandler"><span class="nav-number">1.</span> <span class="nav-text">UrlSkipHandler</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#DruidStatViewHandler"><span class="nav-number">2.</span> <span class="nav-text">DruidStatViewHandler</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#ContextPathHandler"><span class="nav-number">3.</span> <span class="nav-text">ContextPathHandler</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#ServerNameRedirect301Handler"><span class="nav-number">4.</span> <span class="nav-text">ServerNameRedirect301Handler</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#FakeStaticHandler"><span class="nav-number">5.</span> <span class="nav-text">FakeStaticHandler</span></a></li></ol></div>
            

          </div>
        </section>
      <!--/noindex-->
      

      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <div class="copyright" >
  
  &copy; 
  <span itemprop="copyrightYear">2017</span>
  <span class="with-love">
    <i class="fa fa-heart"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">Gie</span>
</div>



        

<div class="busuanzi-count">

  <script async src="https://dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js"></script>

  

  
    <span class="site-pv">本站总访问量<span class="busuanzi-value" id="busuanzi_value_site_pv"></span>次</span>
  

</div>



        
      </div>
    </footer>

    
      <div class="back-to-top">
        <i class="fa fa-arrow-up"></i>
        
      </div>
    
    
  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
</script>









  




  
  <script type="text/javascript" src="/lib/jquery/index.js?v=2.1.3"></script>

  
  <script type="text/javascript" src="/lib/fastclick/lib/fastclick.min.js?v=1.0.6"></script>

  
  <script type="text/javascript" src="/lib/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>

  
  <script type="text/javascript" src="/lib/velocity/velocity.min.js?v=1.2.1"></script>

  
  <script type="text/javascript" src="/lib/velocity/velocity.ui.min.js?v=1.2.1"></script>

  
  <script type="text/javascript" src="/lib/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>


  


  <script type="text/javascript" src="/js/src/utils.js?v=5.1.0"></script>

  <script type="text/javascript" src="/js/src/motion.js?v=5.1.0"></script>



  
  


  <script type="text/javascript" src="/js/src/affix.js?v=5.1.0"></script>

  <script type="text/javascript" src="/js/src/schemes/pisces.js?v=5.1.0"></script>



  
  <script type="text/javascript" src="/js/src/scrollspy.js?v=5.1.0"></script>
<script type="text/javascript" src="/js/src/post-details.js?v=5.1.0"></script>



  


  <script type="text/javascript" src="/js/src/bootstrap.js?v=5.1.0"></script>



  



  




	





  





  





  
    <script type="text/javascript">
      (function(d, s) {
        var j, e = d.getElementsByTagName(s)[0];
        if (typeof LivereTower === 'function') { return; }
        j = d.createElement(s);
        j.src = 'https://cdn-city.livere.com/js/embed.dist.js';
        j.async = true;
        e.parentNode.insertBefore(j, e);
      })(document, 'script');
    </script>
  



  
  

  

  

  

  

  
  
  
  <link rel="stylesheet" href="/lib/algolia-instant-search/instantsearch.min.css">

  
  
  <script src="/lib/algolia-instant-search/instantsearch.min.js"></script>
  

  <script src="/js/src/algolia-search.js?v=5.1.0"></script>



  

</body>
</html>
